package day30ver2;

public class User extends Thread {
	Bank b;
	int m;

	public User(Bank b, int m) {
		this.b = b;
		this.m = m;

	}

	public void run() {
		for (int i = 0; i < 10; i++) {
			b.setMoney(m);
		}
	}

	public static void main(String[] args) {
		Bank b = new Bank();
		User p = new User(b, 100);
		User m = new User(b, 100);
		p.start();
		m.start();
	}
}
	
	
